Skip to content

fix(TextInput): start-align input text when suffix is active - #5261

Merged
Doberjohn merged 1 commit into
callstack:mainfrom
EnesKartal:fix/issue-5246
Nov 20, 2026
Merged

Doberjohn merged 1 commit into
callstack:mainfrom
EnesKartal:fix/issue-5246

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Fixes #5246

Updates getFilledStyles and getOutlinedStyles in src/components/TextInput/utils.ts to start-align input text (shared.isRTL ? 'right' : 'left') instead of aligning toward the suffix (hasSuffix === shared.isRTL), while preserving explicit extAlign overrides from style.

Verified locally with
px tsc --noEmit and
px jest src/components/tests/TextInput.test.tsx (80 passed, 7 snapshots passed).

Copilot AI balanced review requested due to automatic review settings November 20, 2026 08:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@Doberjohn Doberjohn added this to the 6.0.0 milestone Nov 20, 2026
@Doberjohn
Doberjohn merged commit 295f36b into callstack:main Nov 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextInput: with a suffix, the input text aligns toward the suffix instead of the start

3 participants